#ifndef CBUSSCHEDULERSHOWINTERFACE_H
#define CBUSSCHEDULERSHOWINTERFACE_H

#include "IInterface.h"
#include "qtablewidget.h"
#include "ui_BusSchedulerShow.h"
#include "globalParameter.h"
#include "vector"

using namespace std;

namespace Ui {
    class BusSchedulerShow;
}

namespace interface
{
class CBusSchedulerShowInterface : public IInterface
{
    Q_OBJECT

public:
    CBusSchedulerShowInterface(IInterface * parent = 0, BUS_SCHEDULER_ORDER* order = 0);
    ~CBusSchedulerShowInterface();

private Q_SLOTS:
    // button OK
    void MoreSearch();

    // button CANCEL
    void Cancel();

private:
    // prepare for the background setting
    virtual void UiSetting(Ui::BusSchedulerShow *ui);

    // fill the table
    void FillInfomation(QTableWidget * pTableView);

    // format the table
    void FormatTable(QTableWidget * pTableView);

private:
    Ui::BusSchedulerShow *m_pUi;

    BUS_SCHEDULER_ORDER order;

    int m_columnCount;

    int m_rowCount;

    //items for table view
    vector<QTableWidgetItem*> m_vecItem;
};
}

#endif // CBUSSCHEDULERSHOWINTERFACE_H
